package itheima.zuiye.Test1;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class LotteryPool {


    public static void main(String[] args) {
        // 创建两个抽奖箱（线程）
        Thread lotteryBox1 = new Thread(new LotteryBox("抽奖箱1"), "抽奖箱1");
        Thread lotteryBox2 = new Thread(new LotteryBox("抽奖箱2"), "抽奖箱2");

        // 启动线程
        lotteryBox1.start();
        lotteryBox2.start();
    }
}

